//
//  BaseViewController.h
//  XYMaterial
//
//  Created by 肖扬 on 15/12/9.
//  Copyright © 2015年 肖扬. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "ViewController.h"
#import "UItil.h"
@interface BaseViewController : ViewController<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UIView *mainView;
@property (nonatomic,strong) UITableView *mainTableView;
@property (nonatomic,strong) NSMutableArray *mainData;
@property (nonatomic,strong) UIButton *leftBtn;
@property (nonatomic,strong) UIButton *rightBtn;
@property (nonatomic,strong) UILabel *titleLab;
//创建UILabel  tag值为三位数
- (UILabel *)createLabelFrame:(CGRect)frame
                        title:(NSString *)title
                   titleColor:(UIColor *)color
                          tag:(NSInteger)tag;
//创建UIButton tag值为四位数
- (UIButton *)createButtonFrame:(CGRect)frame
                          title:(NSString *)title
                 viewController:(id)viewController
                       selector:(SEL)selector
                            tag:(NSInteger)tag;
//创建UIImageView tag值为五位数
- (UIImageView *)createImageViewFrame:(CGRect)frame
                                image:(UIImage *)image
                            imageName:(NSString *)imageName
                                  tag:(NSInteger)tag;
//创建View tag值为五位数
- (UIView *)createViewFrame:(CGRect)frame
                    bgColor:(UIColor *)color
                        tag:(NSInteger)tag;

//创建textField
- (UITextField *)createTextFieldFrame:(CGRect)frame
                              bgColor:(UIColor *)color
                                  tag:(NSInteger)tag
                         keyBoardType:(int)keyBoardType;

-(void)resignFirstText:(UITapGestureRecognizer *)tap;
-(void)superMainVC;
@end
